from constants import *

def breaks_and_colors(reps: int):
    if reps % (LONG_AFTER * 2) == 0:
        return "Break", RED, LONG_BREAK_MIN
    elif reps % 2 == 0:
        return "Short break", PINK, SHORT_BREAK_MIN
    else:
        return "Work", GREEN, WORK_MIN

def sec2text(time_sec: int) -> str:
    mins, secs = divmod(time_sec, 60) 
    return '{:02d}:{:02d}'.format(mins, secs)
